/**
 *添加项目档案
 */
'use strict';

const conn = require('../../libs/DB/Conn');
const operationRecord = require("../sys/operationRecordAction");

module.exports = async function (params) {
    let insertObj ={
        project_name:params.projectName,
        population:params.population,
        area:params.area,
        domain_id:params.userDomainId
    }
    let insertSql = `INSERT INTO project_file SET ?`;
    await conn(insertSql, [insertObj]);
    await operationRecord(params);
    return { success: true };
};
